#ifndef ITEM_H
#define ITEM_H

#include "PhysicObject.h"

typedef enum {
    ST_IT_NORMAL = 0,
    ST_IT_EATEN = 1
} IT_STATE;

class Item : public PhysicObject
{
public:
    Item();
    ~Item();

    void initGameObjectWith(GamePlayScreen *_gameScreen, CCDictionary *_dict);
    void createSprite();
    void createPhysicBody();
    void changeState(unsigned char _state);
    void beginContact(b2Fixture *ownFixture, b2Fixture *otherFixture, b2Contact *contact);

    void addToRemoveList(CCObject *sender);

public:
    unsigned char heroIndex;
    GAME_ITEM type;
};

#endif // ITEM_H
